package com.bitdf.txing.ware.feign;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.ware.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(
        name = "tx-users",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface WareUserFeignService {

    @RequestMapping("/txing/user/address/info/{id}")
    R addrInfo(@PathVariable("id") Long id);
}
